package com.iplay.dahua.chapter2.proxy;

/**
 *
 * @author dangwu
 * @since 2021/8/7 7:05 下午
 */
public class Proxy extends Subject{
    private RealSubject realSubject;
    @Override
    public void request() {
        if (realSubject == null){
            realSubject = new RealSubject();
        }
        realSubject.request();
    }
}
